<?php
/*
Plugin Name: Keyword Filter
Plugin URI: http://www.williamlong.info/archives/1156.html
Description: This plugin replace keywords you chose with a filter words.
Version: 1.0.0
Author: William Long
Author URI: http://www.williamlong.info
License: GNU
Text Domain: keyword-filter
*/

$KeyWordsFilterAds = array(
'大牌'=>'',
'巨星'=>'',
'无痛'=>'',
'无副作用'=>'',
'无出血'=>'',
'成功率'=>'',
'治愈率'=>'',
'无痕'=>'',
'无暇'=>'',
'权威'=>'',
'特惠'=>'',
'疯抢'=>'',
'低至'=>'',
'火爆'=>'',
'细胞'=>'',
'保证'=>'',
'立即'=>'',
'精致'=>'',
'最'=>'',
'独家'=>'',
'唯一'=>'',
'一些'=>'',
'有效率'=>'',
'治愈率'=>'',
'第一'=>'',
'大牌'=>'',
'巨星'=>'',
'无痛'=>'',
'无副作用'=>'',
'无出血'=>'',
'资深'=>'',
'精准'=>'',
'精细'=>'',
'老字号'=>'',
'国际'=>'',
'精确'=>'',
'精品'=>'',
'首批'=>'',
'率先'=>'',
'持久'=>'',
'世界领先'=>'',
'领先'=>'',
'遥遥领先'=>'',
'领导者'=>'',
'领袖'=>'',
'引领'=>'',
'创领'=>'',
'领航'=>'',
'万人疯抢'=>'',
'独创'=>'',
'独据'=>'',
'开发者'=>'',
'缔造者'=>'',
'创始者'=>'',
'发明者'=>'',
'金牌'=>'',
'0首付'=>'',
'首个'=>'',
'首选'=>'',
'首发'=>'',
'首席'=>'',
'首府'=>'',
'首屈一指'=>'',
'全国首家'=>'',
'国家级产品'=>'',
'填补国内空白'=>'',
'明星'=>'',
'全脸'=>'',
'爆品'=>'',
'冠军'=>'',
'万人'=>'',
'千人'=>'',
'国家级'=>'',
'世界级'=>'',
'顶级'=>'',
'国际级产品'=>'',
'绝对'=>'',
'首家'=>'',
'名牌'=>'',
'优秀'=>'',
'顶级工艺'=>'',
'极品'=>'',
'顶尖'=>'',
'王牌'=>'',
'销量冠军'=>'',
'永久'=>'',
'独一无二'=>'',
'绝无仅有'=>'',
'万能'=>'',
'安全'=>'',
'千例'=>'',
'万例'=>'',
'永不反弹'=>'',
'全'=>'',
'秀琪'=>'',
);

function KeyWordsFilter($content) {
	global $KeyWordsFilterAds;
	$content = strtr($content, $KeyWordsFilterAds);
	return $content;
}

add_filter('the_content', 'KeyWordsFilter');
add_filter('the_title', 'KeyWordsFilter');
add_filter('wp_title', 'KeyWordsFilter');
add_filter('the_footer', 'KeyWordsFilter');
add_filter('get_the_excerpt', 'KeyWordsFilter');
?>